package liang.jiaxin.com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Jrxsr
 * @since 2019-04-13
 */
@ApiModel("")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Customer extends Model<Customer> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    private String name;
    /**
     * 用户手机
     */
    @ApiModelProperty(value = "用户手机")
    private String phone;
    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码")
    private String password;
    /**
     * 关联QQ
     */
    @ApiModelProperty(value = "关联QQ")
    private Integer qq;
    /**
     * 关联邮箱地址
     */
    @ApiModelProperty(value = "关联邮箱地址")
    private byte[] email;
    /**
     * 用户token
     */
    @ApiModelProperty(value = "用户token")
    private String token;
    /**
     * 用户等级
     */
    @ApiModelProperty(value = "用户等级")
    private Long rank;
    /**
     * 客户保存主题
     */
    @ApiModelProperty(value = "客户保存主题")
    @TableField("bbsThemesId")
    private Integer bbsThemesId;
    /**
     * 头像地址(资源表id)
     */
    @ApiModelProperty(value = "头像地址(资源表id)")
    @TableField("headAddress")
    private Integer headAddress;
    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    @TableField("createOperator")
    private String createOperator;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField("createDatetime")
    private Date createDatetime;
    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    @TableField("updateOperator")
    private String updateOperator;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField("updateDatetime")
    private Date updateDatetime;


    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String PHONE = "phone";

    public static final String PASSWORD = "password";

    public static final String QQ = "qq";

    public static final String EMAIL = "email";

    public static final String TOKEN = "token";

    public static final String RANK = "rank";

    public static final String BBSTHEMESID = "bbsThemesId";

    public static final String HEADADDRESS = "headAddress";

    public static final String CREATEOPERATOR = "createOperator";

    public static final String CREATEDATETIME = "createDatetime";

    public static final String UPDATEOPERATOR = "updateOperator";

    public static final String UPDATEDATETIME = "updateDatetime";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
